package com.screencapture.slate;
import java.awt.Color;
import java.awt.Graphics2D;
import java.awt.Shape;


public class SlateStateMaintainance {
	public SlateStateMaintainance previousState;
	public SlateStateMaintainance nextState;
	
	public Shape shape;
	public Color color;
	public boolean fill;
	
	public void paint(Graphics2D g){
		if(shape != null){
			Color colorNow = g.getColor();
			g.setColor(color);
			if(fill){
				g.fill(shape);
			}else{
				g.draw(shape);
			}
			g.setColor(colorNow);
		}
	}
}
